﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>{:config('sitename')}</title>
		{css href="__ROOT__/static/public/css/pintuer.css" /}
		{css href="__ROOT__/static/admin/css/admin.css" /}
		{js href="__ROOT__/static/public/js/jquery.js" /}
		{js href="__ROOT__/static/public/js/pintuer.js" /}
		{js href="__ROOT__/static/public/laydate/laydate.js" /}
	</head>

	<body>
{include file="public/lefter" /}
{include file="public/admin-nav" /}
		<div class="admin">
			<iframe style="width:100%;height:100%;" src="index/home.html"></iframe>
		</div>
<script>
var src;
$("ul.nav li").click(function(){
	$(this).parent().children('li').removeClass('active');
	$(this).addClass('active');
	if($(this).find('a').attr('href') != '' && typeof($(this).find('a').attr('href')) != 'undefined'){
		location.href = $(this).find('a').attr('href');
		return false;
	}
	//if(src != $(this).find('a').attr('data-href')){
		src = $(this).find('a').attr('data-href');
		if(src){
			if($(this).find('ul').length > 0){
				$(this).find('ul').children('li').removeClass('active');
				$(this).find('ul').find('li:first').click();
				$('#nav_two').html($(this).find('a').html());
				$('#nav_three').html('');
			}else{
				$(this).find('ul').find('li:first').click();
				$('#nav_three').html($(this).find('a').html());
			}
			if(src != 'menu'){
				$('iframe').attr('src',src);
			}
			return false;
		}
	//}
	return false;
});
</script>
</body>

</html>